// 配置编译环境和线上环境之间的切换
let baseUrl = "";
let envType = "dev";

let iconfontVersion = ['567566_pwc3oottzol', '1066523_6bvkeuqao36'];
let iconfontUrl = `//at.alicdn.com/t/font_$key.css`;
let codeUrl = `${baseUrl}/code`
const env = process.env
if (env.VUE_APP_CURRENTMODE == 'development') {
    envType="dev"
    baseUrl = 'https://dev.xxx.cn/'; // 开发环境地址
} else if (env.VUE_APP_CURRENTMODE == 'production') {
    envType="release"
    baseUrl = "https://prod.xxx.cn/"; //生产环境地址
} else if (env.VUE_APP_CURRENTMODE == 'test') {
    envType="test"
    baseUrl = "https://test.xxx.cn/"; //测试环境地址
}
export {
    baseUrl,
    envType,
    iconfontUrl,
    iconfontVersion,
    codeUrl,
    env
}
